package com.hisky.auth.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hisky.auth.dao.AdminDao;
import com.hisky.auth.vo.Admin;

@Service
public class AdminService {

	@Autowired
	AdminDao adminDao;

	public int add(Admin admin) {
		return adminDao.add(admin);
	}

	public Admin get(Admin admin) {
		return adminDao.get(admin);
	}

	public int update(Admin admin) {
		return adminDao.update(admin);
	}

	public int delete(Integer adminId) {
		return adminDao.delete(adminId);
	}
}
